Skip to content

fix: Handle pointer on Installation and User creation #196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

cbaker6
Copy link
Member

@cbaker6 cbaker6 commented Apr 17, 2025

New Pull Request Checklist

Issue Description

Sometimes when using custom objectId's and create the Installation or User returns from the server as a pointer upon creation.

Closes: FILL_THIS_OUT

Approach

Try to decode CreateResponse first for both Installation and User, if it doesn't succeed, try to decode as Pointer and update the object with the new objectId

TODOs before merging

  • Add entry to changelog

Copy link

codecov bot commented Apr 17, 2025

Codecov Report

Attention: Patch coverage is 42.85714% with 24 lines in your changes missing coverage. Please review.

Project coverage is 91.74%. Comparing base (7a06604) to head (b1e430a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/ParseSwift/Objects/ParseInstallation.swift 42.85% 12 Missing ⚠️
Sources/ParseSwift/Objects/ParseUser.swift 42.85% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
- Coverage   91.87%   91.74%   -0.14%     
==========================================
  Files         179      179              
  Lines       15950    15985      +35     
==========================================
+ Hits        14654    14665      +11     
- Misses       1296     1320      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cbaker6 cbaker6 merged commit e4d22f7 into main Apr 17, 2025
8 of 9 checks passed
@cbaker6 cbaker6 deleted the fixCreateInstallation branch April 17, 2025 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant